package demo_0324;

 public abstract class Employee implements Comparable<Employee>  {
    private String name;
    private int age;
    public Employee(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public double weeklySalary() {return 0;};
    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

     @Override
     public int compareTo(Employee o) {
         return (int)(this.weeklySalary() - o.weeklySalary());
     }
 }
